package cn.arts.assumejson.design_pattern.chap01;

import java.sql.SQLOutput; /**
 * @author by <a href="mailto:ligang941012@gmail.com">gang.Li</a>
 * @since 3/26/2025 10:43 PM
 */
public class MallardDuck extends Duck {

    public MallardDuck() {
        quackBehavior = new Quack();
        flyBehavior = new FlyWithWings();
    }

    @Override
    public void display() {
        System.out.println("I'm a real Mallard duck.");
    }
}